<div class="ui-tab">
    <ul>
        <li class="tab-item <{if $a == 'index'}> selected <{/if}>"><a href="<{U('card/index')}>">卡券列表</a></li>
        <li class="tab-item <{if $a == 'add'}> selected <{/if}>"><a href="<{U('card/add')}>">新增卡券</a></li>
        <li class="tab-item <{if $a == 'log'}> selected <{/if}> last-item"><a href="<{U('card/log')}>">使用记录</a></li>
    </ul>
</div>